package com.ruoyi.common.exception.backendEnum;

public enum WeatherException {

    WEATHER_DATA_NOT_EXIST(400,"气象站数据不存在"),
    WEATHER_DATA_NOT_FOUND(400,"未查询到气象站数据");

    private final int code;
    private final String message;

    WeatherException(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }
    public String getMessage() {
        return message;
    }
}

